package com.android.inestpin.model.detail;

import com.google.gson.Gson;
import com.android.inestpin.utils.okhttp3.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/6/30.
 */

public abstract class BrandGoodsListTCascadeCallback  extends Callback<BrandGoodsListTCascadeData> {

    @Override
    public BrandGoodsListTCascadeData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        BrandGoodsListTCascadeData data = new Gson().fromJson(string, BrandGoodsListTCascadeData.class);
        return data;
    }
}
